<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	
	<script language="javascript" type="text/javascript">
		
		function qryData(){
			form1.action="<%=path%>/other/qryPaymentList";
			form1.submit();
		}
		
		function exportData(){
			form1.action="<%=path%>/other/exportPayment?isList=y";
			form1.submit();
		}
	</script>
	
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                        <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">付款查询 </span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/FKCX.html');" class="linkstyle">帮助</a>
					</div>
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;付款查询 </div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    	<form name="form1" action="<%=path%>/other/qryPaymentList" method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1">付款单号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryPaymentNo" name="qryPaymentNo" type="text" value="${qryPaymentNo}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">付款公司：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryPayCorpName" name="qryPayCorpName" type="text" value="${qryPayCorpName}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
<!--	                            	<td valign="middle" class="w_1">票据类型：</td>-->
<!--	                                <td valign="middle" class="w_2">-->
<!--	                                	<select id="qryTicketType" name="qryTicketType" class="searchtext">-->
<!--	                                		<option value="">--请选择--</option>-->
<!--	                                		<option value="1" <c:if test="${1==qryTicketType}">selected </c:if>>商业承兑</option>-->
<!--	                                		<option value="2" <c:if test="${2==qryTicketType}">selected </c:if>>银行承兑</option>-->
<!--	                                		<option value="0" <c:if test="${0==qryTicketType}">selected </c:if> >其它</option>-->
<!--	                                	</select>-->
<!--	                                </td>-->
<!--	                                <td valign="middle" class="w_1">票据号：</td>-->
<!--	                                <td valign="middle" class="w_2">-->
<!--	                                    <input id="qryTicketNo" name="qryTicketNo" type="text" value="${qryTicketNo}" class="searchtext" />-->
<!--	                                </td>-->
	                                <td valign="middle" class="w_1">订单号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryOrderNo" name="qryOrderNo" type="text" value="${qryOrderNo}" class="searchtext" />
	                                </td>
	                               <td valign="middle" class="w_1">发票号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryInvoiceNo" name="qryInvoiceNo" type="text" value="${qryInvoiceNo}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">付款单日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryPaymentBenginDate" name="qryPaymentBenginDate" type="text" readonly="readonly"
	                                    	onclick="return showCalendar('qryPaymentBenginDate', 'y-mm-dd');"   
	                                    	value="${qryPaymentBenginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryPaymentEndDate" name="qryPaymentEndDate" type="text" readonly="readonly"
	                                    	onclick="return showCalendar('qryPaymentEndDate', 'y-mm-dd');"   
	                                    	value="${qryPaymentEndDate}" class="searchdate" />
	                                </td>
	                                <td colspan="2">&nbsp;</td>
	                            </tr>
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="button" class="btnscs" value="查询" onclick="qryData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="导出" onclick="exportData()" <c:if test="${paymentForms==null}">disabled</c:if>/>
	                                </td>
	                            </tr>
	                        </table>
	                	</form>
                    </div>
                    <div class="margin20">
                    </div>
                    <div>
                          <table class="tableCss" cellpadding="0" cellspacing="0">
							            <tr class="titleTr">
                                <th width="40px">序号</th>
                                <th width="380px">付款单号</th>
                                <th width="380px" class="th1">付款单日期</th>
                            </tr>
                             <c:if test="${paymentForms!=null}">
								<c:forEach items="${paymentForms}" var="paymentForm" varStatus="index">
									<c:if test="${paymentForm.index%2==1}">
										<tr align="left" class="contTr-old"  >
									</c:if>
									<c:if test="${paymentForm.index%2==0}">
										<tr align="left" class="contTr-even">
									</c:if>
										<td class="td1">${paymentForm.index}</td>
										<td class="td1"><a href="<%=path%>/other/paymentDetail?paymentPk=${paymentForm.pkPayment}" >${paymentForm.billNo}</a></td>
										<td class="td1"><font class="words-blue">${paymentForm.billDate}</font></td>
									</tr>
								</c:forEach>
							</c:if>
                        </table>
                    </div>
                    <div class="margin8"></div>
                    <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div> 
                </div>
            </div>
        <div class="margin20"></div>
</body>
</html>
